package com.ruoyi.experiment.model;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.experiment.domain.Sample;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.math.BigDecimal;
import java.util.Date;

@Data
@EqualsAndHashCode(callSuper = false)
public class ESample extends Sample {
    private Long experimentId;

    /** 实验类型id */
    private Long typeId;
    @Excel(name = "实验类型")
    private String type;

    /** 实验名称 */
    @Excel(name = "实验名称")
    private String experimentName;

    /** 数量 */
    @Excel(name = "实验数量")
    private Long experimentNumber;

    /** 单价 */
    @Excel(name = "实验单价")
    private Long experimentPrice;

    /** 岗位id */
    private Long jobId;
    //展示字段：岗位名
    @Excel(name = "岗位名")
    private String job;
    @Excel(name = "内部岗",readConverterExp = "0=是,1=否")
    private Integer isOutJob;

    /** 岗位分发价格 */
    @Excel(name = "岗位分发价格，单位（分）")
    private Long jobPrice;

    /** 实验开始时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "实验开始时间")
    private Date experimentDate;

    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "实验要求完成时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date experimentRequiredDate;

    /** 实验结束时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "实验结束时间")
    private Date experimentEndDate;

    /** 实验操作人 */
    @Excel(name = "实验操作人")
    private String experimentPerson;

    /** 实验备注 */
    @Excel(name = "实验备注")
    private String experimentRemark;

    private Integer expermentType;
}
